package com.pzhu.model.help;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分页Model类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("分页查询实体")
public class PageBean {
    /**
     * 页数
     */
    @ApiModelProperty("页数")
    private int pageNum;
    /**
     * 每页显示个数
     */
    @ApiModelProperty("每页显示个数")
    private int pageSize;
    /**
     * 起始页
     */
    @ApiModelProperty("起始页")
    private int start;
    /**
     * 查询参数
     */
    @ApiModelProperty("查询参数")
    private String query;

    public PageBean(int pageNum, int pageSize) {
        super();
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
